package club.emergency.wechat.mistake_collection.operate;

import club.emergency.wechat.model.mistake_collection.MistakeCollection;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create with IntelliJ IDEA
 * Project Name: wechat
 * Package Name: club.emergency.wechat.mistake_collection.operate
 * Date: 2018/12/23
 *
 * @author: 快乐的小菌菌
 * Description:
 */
public interface MistakeCollectionOperate {

    /**
     * 增加错题
     *
     * @param mistakeCollection pojo
     * @return 以字符串返回
     */
    @PostMapping("/mistake-collection-operate-provider/save")
    String save(@RequestBody MistakeCollection mistakeCollection);

    /**
     * 消灭错题,需要用户手动出发。
     *
     * @param id 错题id
     * @return 以字符串返回
     */
    @PostMapping("/mistake-collection-operate-provider/eliminate")
    String eliminate(@RequestParam("id") Long id);
}
